package com.hardydou.system.controller;

import com.hardydou.common.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author ：hardy
 * @description：ErrorController.java
 * @date ：Created in 2020-03-05
 * @Copyright ：Hardydou.com
 */
@Controller
@RequestMapping("/error")
@ApiIgnore
public class ErrorController extends BaseController {


    @GetMapping("")
    public String index() {
        return page("index");
    }

    /***
     * 主模块名称
     * @return
     */
    @Override
    public String getModel() {
        return "error";
    }

    /***
     * 子模块名称
     * @see #page(String)
     * @return
     */
    @Override
    public String getSubModel() {
        return "";
    }
}
